package org.client.iot.ui.device.adapter;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.client.iot.R;
import org.client.iot.domain.DebugData;

import java.util.List;

public class DeviceDebugDataAdapter extends BaseQuickAdapter<DebugData, BaseViewHolder> {

    private Context mContext;

    public DeviceDebugDataAdapter(Context mContext ) {
        super(R.layout.content_device_debug_data);
        this.mContext = mContext;
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, DebugData debugData) {
        baseViewHolder.setText(R.id.textView_debug_item_title,debugData.getTitle());
        baseViewHolder.setText(R.id.textView_debug_item_data,debugData.getData());
    }
}
